
#ifndef _APP_THREAD_H_
#define _APP_THREAD_H_



#include "config.h"
#include "framework/App.h"
#include "thread/Thread.h"

namespace KEngine
{
	class _KExport AppThread : public App ,public KCore::ThreadRun
	{
	public:
		AppThread(const char* name,System* sys):App(name,sys)
		{

		}
		~AppThread();
		void start();					
		void stop();
		

		AppType getType()
		{
			return App_Thread;
		}
	private:
		KCore::Thread _thread;
		unsigned long threadRun();
	};

	
};

#endif

